package main

import (
	"fmt"
	"kaoqin"
	"logger"
	"os"
	"panda"

	"gocv.io/x/gocv"
)

// var logger = log.New(os.Stdout, "", log.Ldate|log.Ltime|log.Llongfile)

func main() {
	log := logger.GetLogInfo()
	log.Println("Hello, 世界!")
	fmt.Println("程序启动...")

	version := gocv.Version()
	fmt.Println("OpenCV版本:", version)

	err := kaoqin.Mark("screen.png", "ceshi.png")
	if err != nil {
		fmt.Printf("图像处理错误: %v\n", err)
		os.Exit(1)
	}
	input := panda.Input()
	panda.Cmd(input)
	fmt.Println("Run successed!")
}
